package com.blb.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class WelcomeController {

    @GetMapping("{path}Page")
    public String into(@PathVariable String path) {
        return path;
    }

    @GetMapping("/{m}/{page}Page")
    public String welcome(@PathVariable String m, @PathVariable String page){
        System.out.println("m: " + m + ", page: " + page);
        return "/"+m+"/"+page;
    }

    @GetMapping("")
    public String login(){
        return "/pc_login";
    }
}
